package gao.xiaolei.copyEntity;

import gao.xiaolei.entity.TestCheckBase;
import gao.xiaolei.entity.TestRunCheck;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import java.time.LocalDateTime;

@Entity
@Data
public class TestRunCheckCopy extends TestCheckBase {

    @Column
    private String testLabPath;

    public TestRunCheckCopy(TestRunCheck testRunCheck) {
        super(testRunCheck.getId(), testRunCheck.getTargetId(), testRunCheck.getCheckMan(), testRunCheck.getAnnotate(), testRunCheck.getIsPass(), testRunCheck.getIsFinish(), testRunCheck.getCheckDate(), testRunCheck.getProjectId());
        this.testLabPath = testRunCheck.getTestLabPath();
    }

    public TestRunCheckCopy(String id, int isPass, String checkMan, int isFinish, LocalDateTime checkDate) {
        super(id, isPass, checkMan, isFinish, checkDate, null);
    }

    public TestRunCheckCopy() {
    }
}
